package com.fowo.api.model.process;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 加工单子表 导入导出辅助模型 */
@Data
public class ProcessProductItemExcelPo {

  @ExcelProperty(value = "所属加工单")
  private String parentProcessProductRemarks;

  @ExcelIgnore
  @ExcelProperty(value = "所属加工单")
  private Long parentProcessProduct;

  @Size(max = 50, message = "sku长度不能超过20")
  @ExcelProperty(value = "sku")
  private String sku;

  @NotNull(message = "产品不能为空")
  @ExcelProperty(value = "*产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*产品")
  private Long productId;

  @NotNull(message = "价格不能为空")
  @ExcelProperty(value = "*价格")
  private java.math.BigDecimal price;

  @NotNull(message = "数量不能为空")
  @ExcelProperty(value = "*数量")
  private java.math.BigDecimal num;

  @ExcelProperty(value = "小计")
  private java.math.BigDecimal subtotal;
}
